<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>隆基新能源--登录</title>
    <link rel="stylesheet" href="./css/H-ui.reset.css">
    <link rel="stylesheet" href="./css/H-ui.min.css">
    <link rel="stylesheet" href="./css/H-ui.ie.css">
    <link rel="stylesheet" href="./css/page-css/index.css">
    <style>
    .error{
        visibility: hidden;
    }
    </style>
</head>

<body>
    <div class="long-ji-wapper long-ji-login">
        <div class="long-ji-form">
            <div class="long-ji-name text-c">
                <img src="./images/system/login-name.png" alt="">
            </div>
            <div class="long-ji-form-content mt-50">
               <p class="text-c"><img src="./images/system/login-logo.png" height="90" alt=""></p>
               <div class="">
                <input type="text" placeholder="帐号" name="account" class="input-text   size-L mt-10 background-grey">
         
                <input type="password" placeholder="密码" name="password" class="input-text  size-L mt-30 background-grey">
                <button class="login-submit btn btn-secondary btn-block mt-30 size-L">登录</button>
                <div class="Huialert Huialert-danger error mt-10"></div>
               </div>
            </div>
        </div>

    </div>
    <script src="https://cdn.bootcss.com/jquery/3.2.0/jquery.min.js"></script>
    <script>
    $(function(){
        $('.login-submit').click(function(){
            var account=$.trim($('input[name="account"]').val());
            var pwd=$.trim($('input[name="password"]').val());
            if(account==''){
                $('.error').css({visibility: 'visible'}).text('账号不能为空');
                return;
            }else{
                $('.error').css({visibility: 'hidden'}).text('');
            }
            if(pwd==''){
                $('.error').css({visibility: 'visible'}).text('密码不能为空');
                return;
            }else{
                $('.error').css({visibility: 'hidden'}).text('');
            }
            location.href='pages/main.html'
        })
    })
    
    
    </script>



</body>

</html>